{include file='common/header' /}
{php}
    $data = \think\Db::name('configcate') -> where('status',1) -> order('sort desc,id asc') -> select();
    $data = \ebcms\Tree::group($data);
{/php}
<style>
    .cfg{
        line-height: 4em;
        color: #fff;
        background: #009688;
        text-align: center;
        font-size: 2em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    a.thumbnail:hover{
        text-decoration: none;
    }
</style>
<div class="container-fluid">
    {foreach name='data' item='items' key='group'}
        <h3><b>{$group}</b></h3>
        <div class="row">
            {foreach name='items' item='vo'}
                <div class="col-md-2 col-sm-4 col-xs-6">
                    <a href="{:url('setting',['name'=>$vo['name']])}" class="thumbnail">
                        <div class="cfg">{$vo.title}</div>
                    </a>
                </div>
            {/foreach}
        </div>
    {/foreach}
</div>
{include file='common/footer' /}